home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkPopupMenu.h.z / VkPopupMenu.h
C/C++ Source or Header  |  1996-09-20  |  2KB  |  57 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17.  
  18. #ifndef VKPOPUPMENU_H
  19. #define VKPOPUPMENU_H
  20.  
  21. #include <Vk/VkMenu.h>
  22. #include <Vk/VkWidgetList.h>
  23.  
  24. class VkPopupMenu : public VkMenu {
  25.  
  26.  
  27.   public:
  28.  
  29.     VkPopupMenu(VkMenuDesc *desc, XtPointer defaultClientData = NULL);
  30.     VkPopupMenu(const char *name = "popupMenu", VkMenuDesc *desc = NULL, XtPointer defaultClientData = NULL);
  31.  
  32.     VkPopupMenu(Widget, VkMenuDesc *desc, XtPointer defaultClientData = NULL);
  33.     VkPopupMenu(Widget, const char *name = "popupMenu", VkMenuDesc *desc = NULL, XtPointer defaultClientData = NULL);
  34.  
  35.     ~VkPopupMenu();
  36.  
  37.     virtual VkMenuItemType menuType ();
  38.  
  39.     virtual void build(Widget p);
  40.     virtual void attach(Widget p);
  41.     virtual void show();
  42.     virtual void show(XEvent *);
  43.     virtual const char* className();
  44.  
  45.   protected:
  46.  
  47.     Widget menuParent();
  48.     VkWidgetList _attachees;
  49.     virtual void widgetDestroyed();
  50.     
  51.   private:
  52.  
  53.     static void postMenuHandler( Widget,  XtPointer , XEvent *, Boolean *);
  54.     
  55. };
  56. #endif
  57.